<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: soe_request.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('soe__request_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">soe_request.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Sercos-over-EtherCAT request functions.  
<a href="#details">More...</a></p>

<p><a href="soe__request_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a4a6708f336ebb21896abbd6b9c272ec2"><td class="memItemLeft" align="right" valign="top"><a id="a4a6708f336ebb21896abbd6b9c272ec2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a4a6708f336ebb21896abbd6b9c272ec2">EC_SOE_REQUEST_RESPONSE_TIMEOUT</a>&#160;&#160;&#160;1000</td></tr>
<tr class="memdesc:a4a6708f336ebb21896abbd6b9c272ec2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default timeout in ms to wait for SoE responses. <br /></td></tr>
<tr class="separator:a4a6708f336ebb21896abbd6b9c272ec2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a061dca3585d23f3b16ca46a90b53b9de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a061dca3585d23f3b16ca46a90b53b9de">ec_soe_request_clear_data</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req)</td></tr>
<tr class="memdesc:a061dca3585d23f3b16ca46a90b53b9de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free allocated memory.  <a href="#a061dca3585d23f3b16ca46a90b53b9de">More...</a><br /></td></tr>
<tr class="separator:a061dca3585d23f3b16ca46a90b53b9de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac48c2c807e1193b309dc20b08db88af1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#ac48c2c807e1193b309dc20b08db88af1">ec_soe_request_init</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req)</td></tr>
<tr class="memdesc:ac48c2c807e1193b309dc20b08db88af1"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE request constructor.  <a href="#ac48c2c807e1193b309dc20b08db88af1">More...</a><br /></td></tr>
<tr class="separator:ac48c2c807e1193b309dc20b08db88af1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af363b99bdce32c73c89bcec7520b5d01"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#af363b99bdce32c73c89bcec7520b5d01">ec_soe_request_clear</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req)</td></tr>
<tr class="memdesc:af363b99bdce32c73c89bcec7520b5d01"><td class="mdescLeft">&#160;</td><td class="mdescRight">SoE request destructor.  <a href="#af363b99bdce32c73c89bcec7520b5d01">More...</a><br /></td></tr>
<tr class="separator:af363b99bdce32c73c89bcec7520b5d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0aed2b2f97cf1436f7f778ccfb8c5553"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a0aed2b2f97cf1436f7f778ccfb8c5553">ec_soe_request_copy</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, const <a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *other)</td></tr>
<tr class="memdesc:a0aed2b2f97cf1436f7f778ccfb8c5553"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy another SoE request.  <a href="#a0aed2b2f97cf1436f7f778ccfb8c5553">More...</a><br /></td></tr>
<tr class="separator:a0aed2b2f97cf1436f7f778ccfb8c5553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33b01e254978df8b620d4dccc1d42569"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a33b01e254978df8b620d4dccc1d42569">ec_soe_request_set_drive_no</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, uint8_t drive_no)</td></tr>
<tr class="memdesc:a33b01e254978df8b620d4dccc1d42569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set drive number.  <a href="#a33b01e254978df8b620d4dccc1d42569">More...</a><br /></td></tr>
<tr class="separator:a33b01e254978df8b620d4dccc1d42569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1433bb1213a1ae25b9f9e5fdd9002668"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a1433bb1213a1ae25b9f9e5fdd9002668">ec_soe_request_set_idn</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, uint16_t idn)</td></tr>
<tr class="memdesc:a1433bb1213a1ae25b9f9e5fdd9002668"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set IDN.  <a href="#a1433bb1213a1ae25b9f9e5fdd9002668">More...</a><br /></td></tr>
<tr class="separator:a1433bb1213a1ae25b9f9e5fdd9002668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebb7a81aa9fea2e882edce1bb4ccc8b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#aebb7a81aa9fea2e882edce1bb4ccc8b6">ec_soe_request_alloc</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, size_t size)</td></tr>
<tr class="memdesc:aebb7a81aa9fea2e882edce1bb4ccc8b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pre-allocates the data memory.  <a href="#aebb7a81aa9fea2e882edce1bb4ccc8b6">More...</a><br /></td></tr>
<tr class="separator:aebb7a81aa9fea2e882edce1bb4ccc8b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a814c93a03b31ee5cc53ea6eec96a1bbc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a814c93a03b31ee5cc53ea6eec96a1bbc">ec_soe_request_copy_data</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, const uint8_t *source, size_t size)</td></tr>
<tr class="memdesc:a814c93a03b31ee5cc53ea6eec96a1bbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies SoE data from an external source.  <a href="#a814c93a03b31ee5cc53ea6eec96a1bbc">More...</a><br /></td></tr>
<tr class="separator:a814c93a03b31ee5cc53ea6eec96a1bbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a925ba4a167337f982e2af3cc94fe5b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a8a925ba4a167337f982e2af3cc94fe5b">ec_soe_request_append_data</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req, const uint8_t *source, size_t size)</td></tr>
<tr class="memdesc:a8a925ba4a167337f982e2af3cc94fe5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies SoE data from an external source.  <a href="#a8a925ba4a167337f982e2af3cc94fe5b">More...</a><br /></td></tr>
<tr class="separator:a8a925ba4a167337f982e2af3cc94fe5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eef801a2dec94ecd2ea20fa3b9bb3c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a9eef801a2dec94ecd2ea20fa3b9bb3c2">ec_soe_request_read</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req)</td></tr>
<tr class="memdesc:a9eef801a2dec94ecd2ea20fa3b9bb3c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request a read operation.  <a href="#a9eef801a2dec94ecd2ea20fa3b9bb3c2">More...</a><br /></td></tr>
<tr class="separator:a9eef801a2dec94ecd2ea20fa3b9bb3c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02f5e4b5047b8722d5df2096860807bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="soe__request_8c.html#a02f5e4b5047b8722d5df2096860807bb">ec_soe_request_write</a> (<a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *req)</td></tr>
<tr class="memdesc:a02f5e4b5047b8722d5df2096860807bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request a write operation.  <a href="#a02f5e4b5047b8722d5df2096860807bb">More...</a><br /></td></tr>
<tr class="separator:a02f5e4b5047b8722d5df2096860807bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Sercos-over-EtherCAT request functions. </p>

<p class="definition">Definition in file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a061dca3585d23f3b16ca46a90b53b9de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a061dca3585d23f3b16ca46a90b53b9de">&#9670;&nbsp;</a></span>ec_soe_request_clear_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_clear_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free allocated memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00129">129</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="ac48c2c807e1193b309dc20b08db88af1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac48c2c807e1193b309dc20b08db88af1">&#9670;&nbsp;</a></span>ec_soe_request_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE request constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00056">56</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="af363b99bdce32c73c89bcec7520b5d01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af363b99bdce32c73c89bcec7520b5d01">&#9670;&nbsp;</a></span>ec_soe_request_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SoE request destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00077">77</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a0aed2b2f97cf1436f7f778ccfb8c5553"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0aed2b2f97cf1436f7f778ccfb8c5553">&#9670;&nbsp;</a></span>ec_soe_request_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_soe_request_copy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>other</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy another SoE request. </p>
<dl class="section return"><dt>Returns</dt><dd>Zero on success, otherwise a negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">other</td><td>Other SoE request to copy from. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00090">90</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a33b01e254978df8b620d4dccc1d42569"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33b01e254978df8b620d4dccc1d42569">&#9670;&nbsp;</a></span>ec_soe_request_set_drive_no()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_set_drive_no </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>drive_no</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set drive number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">drive_no</td><td>Drive Number. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00105">105</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a1433bb1213a1ae25b9f9e5fdd9002668"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1433bb1213a1ae25b9f9e5fdd9002668">&#9670;&nbsp;</a></span>ec_soe_request_set_idn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_set_idn </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>idn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set IDN. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">idn</td><td>IDN. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00117">117</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="aebb7a81aa9fea2e882edce1bb4ccc8b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebb7a81aa9fea2e882edce1bb4ccc8b6">&#9670;&nbsp;</a></span>ec_soe_request_alloc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_soe_request_alloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pre-allocates the data memory. </p>
<p>If the <em>mem_size</em> is already bigger than <em>size</em>, nothing is done.</p>
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise -ENOMEM. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">size</td><td>Data size to allocate. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00150">150</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a814c93a03b31ee5cc53ea6eec96a1bbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a814c93a03b31ee5cc53ea6eec96a1bbc">&#9670;&nbsp;</a></span>ec_soe_request_copy_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_soe_request_copy_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies SoE data from an external source. </p>
<p>If the <em>mem_size</em> is to small, new memory is allocated.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>Success. </td></tr>
    <tr><td class="paramname">&lt;0</td><td>Error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">source</td><td>Source data. </td></tr>
    <tr><td class="paramname">size</td><td>Number of bytes in <em>source</em>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00179">179</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a8a925ba4a167337f982e2af3cc94fe5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a925ba4a167337f982e2af3cc94fe5b">&#9670;&nbsp;</a></span>ec_soe_request_append_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_soe_request_append_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies SoE data from an external source. </p>
<p>If the <em>mem_size</em> is to small, new memory is allocated.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>Success. </td></tr>
    <tr><td class="paramname">&lt;0</td><td>Error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
    <tr><td class="paramname">source</td><td>Source data. </td></tr>
    <tr><td class="paramname">size</td><td>Number of bytes in <em>source</em>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00203">203</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a9eef801a2dec94ecd2ea20fa3b9bb3c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9eef801a2dec94ecd2ea20fa3b9bb3c2">&#9670;&nbsp;</a></span>ec_soe_request_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request a read operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00232">232</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
<a id="a02f5e4b5047b8722d5df2096860807bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02f5e4b5047b8722d5df2096860807bb">&#9670;&nbsp;</a></span>ec_soe_request_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_soe_request_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__soe__request__t.html">ec_soe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request a write operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="soe__request_8c_source.html#l00245">245</a> of file <a class="el" href="soe__request_8c_source.html">soe_request.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="soe__request_8c.html">soe_request.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
